{include file='header'/}
<link rel="stylesheet" href="__STATIC_ADMIN__/css/dashboard.css" media="all">
<div class="layuimini-container">
    <div class="layuimini-main">
        <div class="alert alert-danger-light">
            {if ($is_file_admin==true) }
            <blockquote class="layui-elem-quote layui-bg-red">
                <i class="iconfont icon-warnfill"></i>&emsp;安全提示：你正在使用默认的后台登录入口，为了你的网站安全，强烈建议你修改后台登录入口，
                <a href="javascript:;" onclick="welcome_xiugai()" style="color:#fff;"><b>点击查看修改方法</b></a>
            </blockquote>
            {/if}
            {if env('app_debug')}
            <blockquote class="layui-elem-quote layui-bg-red">
                <i class="iconfont icon-warnfill"></i>&emsp;安全提示：当前网站【调试模式】开启中，强烈建议在正式部署后关闭调试模式
            </blockquote>
            {/if}
            {if env('app_trace')}
            <blockquote class="layui-elem-quote layui-bg-red">
                安全提示：当前网站【Trace调试】开启中，强烈建议在正式部署后关闭Trace调试
            </blockquote>
            {/if}
        </div>

        <div class="layui-row layui-col-space15">
            <div class="layui-row layui-col-space15">
                <div class="layui-col-md6">
                    <div class="layui-card shortcut">
                        <div class="layui-card-header">
                            <a href="/run/Shortcut/index.html" class="action new_tab"
                               data-title="快捷方式"><span class="hui-circle-icon blue"><i
                                    class="layui-icon layui-icon-chat"></i></span>快捷方式</a></div>
                        <div class="layui-card-body">
                            <div class="layui-carousel admin-carousel admin-shortcut" data-height="194"
                                 lay-anim="default" lay-indicator="inside" lay-arrow="none"
                                 style="width: 100%; height: 194px;">
                                <div carousel-item="">
                                    <ul class="grid quick-link layui-row layui-col-space10 layui-this">
                                        <li class="layui-col-xs3">
                                            <a href="javascript:;" data-confirm="{:__url('index/clearCache')}" data-title="清除缓存？">
                                                <i class="layui-icon layui-icon-fonts-clear"></i>
                                                <span>清除缓存</span>
                                            </a>
                                        </li>
                                        <li class="layui-col-xs3">
                                            <a href="" class="javascript"
                                               rel="simple_clear">
                                                <i class="layui-icon layui-icon-delete"></i>
                                                <span>临时文件</span>
                                            </a>
                                        </li>
                                        <li class="layui-col-xs3">
                                            <a class="new_tab" data-title="系统配置" data-open-full="{:__url('system.config/index')}">
                                                <i class="layui-icon layui-icon-set-sm"></i>
                                                <span>系统配置</span>
                                            </a>
                                        </li>
                                        <li class="layui-col-xs3">
                                            <a class="new_tab" data-title="个人信息" data-open="{:__url('index/editInfo')}">
                                                <i class="layui-icon layui-icon-username"></i>
                                                <span>个人信息</span>
                                            </a>
                                        </li>
                                        <li class="layui-col-xs3">
                                            <a href="https://www.xiaohuihui.club/" class="" target="_blank">
                                                <i class="layui-icon layui-icon-website"></i>
                                                <span>系统官网</span>
                                            </a>
                                        </li>
                                        <li class="layui-col-xs3">
                                            <a href=""
                                               class="" target="_blank">
                                                <i class="layui-icon layui-icon-service"></i>
                                                <span>联系客服</span>
                                            </a>
                                        </li>
                                        <li class="layui-col-xs3">
                                            <a href=""
                                               class="" target="_blank">
                                                <i class="layui-icon layui-icon-login-qq"></i>
                                                <span>加入群聊</span>
                                            </a>
                                        </li>
                                        <li class="layui-col-xs3">
                                            <a href="" class="new_tab" data-title="开发手册">
                                                <i class="layui-icon layui-icon-survey"></i>
                                                <span>开发手册</span>
                                            </a>
                                        </li>
                                    </ul>
                                </div>
                                <div class="layui-carousel-ind">
                                    <ul>
                                        <li class="layui-this"></li>
                                    </ul>
                                </div>
                                <button class="layui-icon layui-carousel-arrow" lay-type="sub"></button>
                                <button class="layui-icon layui-carousel-arrow" lay-type="add"></button>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="layui-col-md6">
                    <div class="layui-card mcount">
                        <div class="layui-card-header">
                            <a href=""
                               class="action new_tab"><span
                                    class="hui-circle-icon green"><i class="layui-icon layui-icon-list"></i></span>数据统计</a>
                        </div>
                        <div class="layui-card-body">
                            <div class="layui-carousel admin-carousel admin-mcount" data-height="194"
                                 lay-anim="default" lay-indicator="inside" lay-arrow="none"
                                 style="width: 100%; height: 194px;">
                                <div carousel-item="">
                                    <ul class="grid layui-row layui-col-space10 layui-this">
                                        <li class="layui-col-xs6">
                                            <a href="javascript:;" class="new_tab" data-title="管理列表">
                                                <h2>管理</h2>
                                                <span class="number-timer">{$count_num.admins}</span>
                                            </a>
                                        </li>
                                        <li class="layui-col-xs6">
                                            <a href="javascript:;" class="new_tab" data-title="会员列表">
                                                <h2>会员</h2>
                                                <span class="number-timer">{$count_num.users}</span>
                                            </a>
                                        </li>
                                        <li class="layui-col-xs6">
                                            <a href="javascript:;" class="new_tab" data-title="文章列表">
                                                <h2>文章</h2>
                                                <span class="number-timer">{$count_num.articles}</span>
                                            </a>
                                        </li>
                                        <li class="layui-col-xs6">
                                            <a href="javascript:;" class="new_tab" data-title="商品列表">
                                                <h2>商品</h2>
                                                <span class="number-timer">{$count_num.goods}</span>
                                            </a>
                                        </li>
                                    </ul>
                                </div>
                                <div class="layui-carousel-ind">
                                    <ul>
                                        <li class="layui-this"></li>
                                    </ul>
                                </div>
                                <button class="layui-icon layui-carousel-arrow" lay-type="sub"></button>
                                <button class="layui-icon layui-carousel-arrow" lay-type="add"></button>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="layui-col-md6">
                    <div class="layui-card userinfo">
                        <div class="layui-card-header"><span class="hui-circle-icon lime"><i
                                class="layui-icon layui-icon-username"></i></span>个人信息
                        </div>
                        <div class="layui-card-body">
                            <div class="admin_user">
                                <div class="admin_user_rght">
                                    <div class="headimg">
                                        <i></i>
                                        <a class="layui-btn layui-btn-normal layui-btn-sm new_tab {if !check_auth('index/editInfo')}layui-hide{/if}"
                                           data-open="{:__url('index/editInfo')}"
                                           data-title="个人主页">
                                            <img src="{$admin_info.avatar}" alt="{$admin_info.username}">
                                        </a>

                                    </div>
                                    <div class="welcome en-font">
                                        您好！<span>{$admin_info.username}</span>
                                    </div>
                                </div>
                                <div class="admin_user_left">
                                    <ul class="list">
                                        <li>登录名称：<span class="c">{$admin_info.username}</span></li>
                                        <li>昵&emsp;&emsp;称：<span class="c">{$admin_info.nickname}</span></li>
                                        <li>角色组名：<span class="c">{$admin_info.role_name}</span></li>
                                        <li>邮箱地址：<span class="c">{$admin_info.email}</span></li>
                                        <li>登录地址：<span class="c">{$admin_info.loginip}</span></li>
                                        <li>登录时间：<span class="c">{$admin_info.logintime|date="Y-m-d H:i:s"}</span></li>
                                    </ul>
                                    <div class="user_link">
                                        <a class="layui-btn layui-btn-primary layui-border-green layui-btn-radius new_tab {if !check_auth('index/editInfo')}layui-hide{/if}"
                                           data-open="{:__url('index/editInfo')}"
                                           data-title="个人信息">
                                            <i class="layui-icon layui-icon-username"></i>
                                        </a>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="layui-col-md6">
                    <div class="layui-card env">
                        <div class="layui-card-header"><span class="hui-circle-icon purple"><i
                                class="layui-icon layui-icon-engine"></i></span>运行环境
                        </div>
                        <div class="layui-card-body">
                            <div class="layui-carousel admin-carousel admin-env" data-interval="10000" data-anim="fade"
                                 data-height="244" lay-anim="fade" lay-indicator="inside" lay-arrow="none"
                                 style="width: 100%; height: 244px;">
                                <div carousel-item="">
                                    <div class="layui-this">
                                        <table class="layui-table">
                                            <colgroup>
                                                <col width="33.33%">
                                                <col width="33.33%">
                                                <col width="33.33%">
                                            </colgroup>
                                            <tbody>

                                            <tr>
                                                <th colspan="3"><b>服务器环境</b></th>
                                            </tr>
                                            <tr>
                                                <td colspan="3">{$sys_info.web_server}</td>
                                            </tr>
                                            <tr>
                                                <th><b>上传限制</b></th>
                                                <th><b>PHP版本</b></th>
                                                <th><b>数据库版本</b></th>
                                            </tr>
                                            <tr>
                                                <td>{$sys_info.fileupload}</td>
                                                <td>{$sys_info.phpv}</td>
                                                <td>{$sys_info.mysql_version}</td>
                                            </tr>
                                            <tr>
                                                <th><b>服务器域名/IP</b></th>
                                                <th><b>服务器时间</b></th>
                                                <th><b>剩余空间</b></th>
                                            </tr>
                                            <tr>
                                                <td>{$sys_info.domain} [ {$sys_info.ip} ]</td>
                                                <td>{$sys_info.time}</td>
                                                <td>{$sys_info.remaining_space}</td>
                                            </tr>
                                            </tbody>
                                        </table>
                                    </div>
                                </div>

                            </div>
                        </div>
                    </div>
                </div>
            </div>

        </div>
    </div>
</div>

{include file='footer'/}
<script>
  layui.use(['element', 'carousel', 'layer', 'jquery'], function () {
    var $ = layui.jquery;
    var element = layui.element;
    var carousel = layui.carousel;
    layer = layui.layer;

    var winWidth = $(window).width();
    var winHight = $(window).height();

    $('.admin-carousel').each(function () {
      carousel.render({
        elem: this
        , width: '100%'
        , height: $(this).data('height') + 'px'
        , arrow: $(this).data('arrow') ? $(this).data('arrow') : 'none'
        , anim: $(this).data('anim') ? $(this).data('anim') : 'default'
        , trigger: $(this).data('trigger') ? $(this).data('trigger') : 'mouseover'
        , autoplay: $(this).data('autoplay') ? true : false
        , interval: $(this).data('interval') ? $(this).data('interval') : 3000
      });
    })

  })

  function welcome_xiugai() {
    layer_index = layer.open({
      type: 2,
      //offset:'50px',
      area: ['850px', '85%'],
      title: '隐藏后台登录入口地址的方法',
      shadeClose: true, //开启遮罩关闭
      content: "{:__url('welcome_xiugai')}"
    });
  }
</script>